const state = {
	ref_sn: '',

	loginAction: false,

}
const mutations = {
	//设置sn
	setSn(state, payload) {
		state.ref_sn = payload.ref_sn;
	},
	//登录动作
	setLoginAction(state, payload) {
		if (payload.loginAction === true) {
			const {
				_this
			} = payload
			_this.$api2('UserCenter/index').then(data => {
				if (data.status == 1) {
					_this.$store.state.goods.service_phone = data.data.service_phone;
					_this.$store.commit('addSpecialPay', data.data.special_wallet_pay)

				} else {
					_this.$showToast(data.msg);
				}
			});
		}
		state.loginAction = payload.loginAction;
	},

}


export default {
	state,
	mutations
}